package com.xd.clap.utils.convenient;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/***
 * @description pk_id 的判定 仅是 判定是否为19位Long 雪花+uuid
 * @author guanxiangfeng
 * @date 2023/4/18 17:29
 * @params 
 * @return 
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IsPkIdValidation.class})
public @interface IsPkId {
    String message() default "不合法ID";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
